package com.qingfeng.client.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qingfeng.client.bean.Goods2attrs;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
public interface Goods2attrsMapper extends BaseMapper<Goods2attrs> {

    Integer getMaxValueId();

    int insertList(@Param("list") List<Goods2attrs> list);

    boolean deletesByGoodsName(@Param("id") Long id, @Param("storeId") Long storeId);

    int updateAttrsIdAndValueAndPicById(@Param("goods2attrs") Goods2attrs goods2attrs, @Param("id") Long id);

    boolean inserts(@Param("list") List<Goods2attrs> goodsBeans);

    int updateValueByGoodsCommonIdAndAttrsIdAndValueId(@Param("updatedValue")String updatedValue,@Param("goodsCommonId")Long goodsCommonId,@Param("attrsId")Integer attrsId,@Param("valueId")Integer valueId);



}
